Conversation
Rename CLI commands for better alignment with git worktree operations: - `create` → `add` (matches `git worktree add`) - `delete` → `remove` (matches `git worktree remove`) Add convenience aliases: - `rm` as alias for `remove` - `ls` as alias for `list` Update documentation, help text, and all tests to reflect new command names. Add MIT license link to README. BREAKING CHANGE: The `create` and `delete` commands have been renamed to `add` and `remove`. Users must update their workflows to use the new command names.
There was a problem hiding this comment.
Pull Request Overview
This PR renames CLI commands to align with git worktree semantics by changing create to add and delete to remove, while adding convenience aliases ls and rm. This is a breaking change that requires users to update their workflows.
- Renamed
createcommand toaddto matchgit worktree addconvention - Renamed
deletecommand toremoveto matchgit worktree removeconvention - Added hidden aliases
lsforlistandrmforremovecommands
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| wt/cli.py | Renamed command functions and added alias implementations with updated help text |
| tests/test_cli.py | Updated all test class names, method names, and command invocations to use new command names |
| README.md | Updated all documentation examples to use new command names and added alias usage examples |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Replace duplicated implementation in alias functions with direct calls to original functions: - `ls()` now calls `list_cmd()` directly - `rm()` now calls `remove(path, force)` directly This follows the DRY principle and makes the code more maintainable. Addresses Copilot PR review feedback.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR renames the CLI commands to better align with git worktree semantics and adds convenience aliases for common operations.
Command Changes
create→add: Matchesgit worktree addconventiondelete→remove: Matchesgit worktree removeconventionNew Aliases
rm: Alias forremovecommand (hidden from main help)ls: Alias forlistcommand (hidden from main help)Additional Changes
Breaking Changes
createanddeletecommands have been renamed toaddandremove. Users must update their workflows to use the new command names:wt create feature-x→wt add feature-xwt delete /path→wt remove /path(orwt rm /path)Test Results
All tests passing ✅
Migration Guide
wt createwt addwt deletewt removewt rmwt listwt listwt ls